import requests from "@/api/ajax"

export const recommendMusic = (params) => requests({
    url: '/personalized',
    params
})

export const hotMusic = (params) => requests({
    url: '/personalized/newsong',
    params
})

export const hotSearch = () => requests({
    url: '/search/hot',

})

export const searchResult = (params) => requests({
    url: '/cloudsearch',
    params
})

export const getSongById = (id) => requests({
    url: `/song/detail?ids=${id}`,
    method: "GET"
})

// 播放页 - 获取歌词
export const getLyricById = (id) => requests({
    url: `/lyric?id=${id}`,
    method: "GET"
})

export const getComment = params => requests({
    url: '/comment/music',
    params
})
